package com.weic.manager.user.mapper_service;

import com.weic.manager.user.mapper.UserVOMapper;
import com.weic.manager.user.vo.UserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserService {

    @Autowired
    UserVOMapper userVOMapper;

    public UserVO selectByLoginName(String loginName){
        return userVOMapper.selectByLoginName(loginName);
    };

    public int deleteByPrimaryKey(String pkUser){
       return userVOMapper.deleteByPrimaryKey(pkUser);
    };

    public int insert(UserVO record){
        return userVOMapper.insert(record);
    };

    public int insertSelective(UserVO record){
        return userVOMapper.insertSelective(record);
    };

    public UserVO selectByPrimaryKey(String pkUser){
        return userVOMapper.selectByPrimaryKey(pkUser);
    };
    public UserVO selectByUserLoginName(String userLoginName){
        return userVOMapper.selectByUserLoginName(userLoginName);
    };

    public int updateByPrimaryKeySelective(UserVO record){
        return userVOMapper.updateByPrimaryKeySelective(record);
    };

    public int updateByPrimaryKey(UserVO record){
        return userVOMapper.updateByPrimaryKey(record);
    };
}
